<?php

namespace App\Http\Controllers;
use Request,Session,Hash;

class HomeController extends Controller
{
    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
//
    }

    /**
     * Show the application dashboard.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        return view('home');
    }
    public function login(){
        $input = Request::all();//获取所有表单提交的内容
        if(!Hash::check($input['captcha'], Session::get('captcha')['key'])) return array('status'=>2);
        print_r($input);
        exit;
    }
}
